#ifndef ELEFACTORY_H
#define ELEFACTORY_H
#include "AbsElement.h"
#include <QString>
#define QT_DEFINE_METATYPE_ID(TypeName, Id, Name) \
    TypeName = Id,

class EleFactory :public QObject
{
public:
    enum  EleType{
        UnknownType,
        QT_FOR_EACH_STATIC_TYPE(QT_DEFINE_METATYPE_ID)
        UserType = 1024,
        Div,Table,Tr,Td,P,Img,/*Title,*/H1,H2,H3,H4,Hr,Span
    };
     explicit EleFactory(QObject* prent =nullptr);
     HtmlElement *eleTypeFactory( EleType type  = UnknownType);
     HtmlElement *eleTypeFactory( class QString eleName);

};

#endif // ELEFACTORY_H
